package com.bestcem.xm.common.core.enums;

import lombok.Getter;
import lombok.ToString;

/**
 * 错误码相关信息
 *
 * @author panyun <yun.pan@idiaoyan.com>
 * @version v1.0
 * @date 2022/1/21 16:19
 */
@Getter
@ToString
public enum ErrorCodeEnum implements CommonErrorEnum {
    /**
     * 参数错误
     */
    PARAM_ERROR(0, "参数错误"),
    /**
     * 系统异常
     */
    SYSTEM_ERROR(1, "系统异常"),
    ;

    private final int code;

    private final String msg;

    ErrorCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
